package com.hzdl.library.domain;

// tdx
// 封装响应信息的类
public class PageInformation<T> {
    private int code;
    private T obj;
    private String message;

    public PageInformation() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "PageInformation{" +
                "code=" + code +
                ", "+obj.getClass().getSimpleName()+"=" + obj +
                ", message='" + message + '\'' +
                '}';
    }
}
